/**
 * @author MIAO
 * Created on 2011-10-12
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Decorator;

public class Decorator implements Worker {
	private   Worker   worker; 
	public Decorator(Worker worker){
		this.worker = worker;
	}
	
	public void work(){
		haveFun();
		worker.work();
	}
	
	public void haveFun(){
		System.out.println("哈哈，我觉得编程是一种享受！");
	}
}
